import { mutableHandles, effect as effectFn } from "./baseHandles.js";

export const reactive = (target) => {
  if (typeof target !== "object") {
    console.warn(`reactive ${target} 必须是一个对象`);
    return target;
  }
  // 使用Proxy代理语法
  return new Proxy(target, mutableHandles);
};

export const effect = effectFn;
